#!/bin/bash

echo Starting up ...
CURRENT_DIR=$(pwd)
echo $CURRENT_DIR

#Set up environment for Java
#JAVA_HOME=/opt/jdk1.8.0_65
PATH=$JAVA_HOME/bin;
##CLASSPATH=.;$JAVA_HOME/lib;$JAVA_HOME/lib/dt.jar;$JAVA_HOME/lib/tools.jar

SERVER_OPTS="-Xms512m -Xmx1024m -XX:MaxNewSize=256m"
echo $SERVER_OPTS
java $SERVER_OPTS -Dfile.encoding=utf8 -Djava.ext.dirs=./lib -classpath ./conf org.fastsyncer.server.jetty.JettyServer $CURRENT_DIR